package day08;

/*
 * Author: JacksonCoder
 * FileName: InputStreamReaderExample
 * Version: 1.0.0
 * Date: 2025/4/15
 */
import java.io.*;

public class InputStreamReaderExample {

    public static void main(String[] args) {
        try (InputStreamReader reader = new InputStreamReader(new FileInputStream("input.txt"), "UTF-8")) {
            int ch;
            while ((ch = reader.read()) != -1) {
                System.out.print((char) ch);
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

}
